<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php $k = 0; foreach ($this->users as $user) { ?>
    <tr class="row<?php echo $k; ?>">
        <td class="name"><?php echo $user->name; ?></td>
        <td class="perm"><div class="<?php echo $user->css_read; ?>" id="cur<?php echo $user->id; ?>">
            <select name="ureadselect" class="urs" id="urs<?php echo $user->id; ?>">
                <option value="0" <?php echo (($user->read == 0)?'selected="selected"':''); ?>><?php echo JText::_('INHERITED'); ?></option>
                <option value="1" <?php echo (($user->read == 1)?'selected="selected"':''); ?>><?php echo JText::_('YES'); ?></option>
                <option value="2" <?php echo (($user->read == 2)?'selected="selected"':''); ?>><?php echo JText::_('NO'); ?></option>
            </select>
        </div></td>
        <td class="perm"><div class="<?php echo $user->css_write; ?>" id="cuw<?php echo $user->id; ?>">
            <select name="uwriteselect" class="uws" id="uws<?php echo $user->id; ?>">
                <option value="0" <?php echo (($user->write == 0)?'selected="selected"':''); ?>><?php echo JText::_('INHERITED'); ?></option>
                <option value="1" <?php echo (($user->write == 1)?'selected="selected"':''); ?>><?php echo JText::_('YES'); ?></option>
                <option value="2" <?php echo (($user->write == 2)?'selected="selected"':''); ?>><?php echo JText::_('NO'); ?></option>
            </select>
        </div></td>
    </tr>
<?php $k = 1 - $k; } ?>

